package com.thon.service.user;

import java.util.Date;
import java.util.List;

import com.thon.dao.util.Page;
import com.thon.entity.user.Letter;
import com.thon.entity.user.LetterView;
import com.thon.entity.user.User;

public interface LetterService {
	
	public void addLetter(Letter letter);
	
	public void deleteLetter(Integer letterId);
	
	public Page<LetterView> listOldLetters(Page<LetterView> page,Integer userId,Integer friendId,Date date);
	
	public Page<LetterView> listNewLetters(Page<LetterView> page,Integer userId,Integer friendId,Date date);
	
	public List<LetterView> listNewestLetters(Integer userId);
	
	public Long countUnReadLetter(Integer isRead,Integer userId);
	
	public void updateLetter(LetterView letterView);

	public Page<LetterView> listNewestLetters(Integer userId, Integer pageNo,
			Integer pageSize);
}